﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace helloworld2
{
    public partial class GUI : Form
    {
        using (ServiceReference1.Service1Client client = new ServiceReference1.Service1Client())
        {
        CtrImage ctrImage = new CtrImage();

        public GUI()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            string start = textBox1.Text;
            string finish = textBox2.Text;
            ctrImage.findRoute(start, finish);
            this.pictureBox1.Image = ctrI.getImage().ToBitmap();
        }
        }
    }
}

